import request from '../../service/index.js'

export const login = data => {
	return request({
		path: '/circle/store/login',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getPhone = data => {
	return request({
		path: '/circle/store/get_phone',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const identifyYellow = data => {
	return request({
		path: '/api/common/checkHuang',
		method: 'POST',
		data,
		module: 'car'
	})
}
export const addCollection = data => {
	return request({
		path: '/circle/chat/collection',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const cancleCollection = data => {
	return request({
		path: '/circle/chat/del_collection',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getRecommend = data => {
	return request({
		path: '/api/index',
		method: 'GET',
		data,
		module: 'car'
	})
}
export const getNotice = data => {
	return request({
		path: '/api/index/getPlacard',
		method: 'GET',
		data,
		module: 'car'
	})
}
export const getMessageCount = data => {
	return request({
		path: '/circle/user/message_count',
		method: 'GET',
		data,
		module: 'lifeCircle'
	})
}
export const getHomePageBannerList = data => {
	return request({
		path: '/api/index/carousel',
		method: 'GET',
		data,
		module: 'car'
	})
}

export const getPhoneNumber = data =>{
	return request({
		path: '/circle/store/getPhone',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}

export const bindPhone = data =>{
	return request({
		path: '/api/index/bindPhone',
		method: 'POST',
		data,
		module: 'car'
	})
}